#ifndef GLWINDOW_HPP
#define GLWINDOW_HPP
#ifndef NOMINMAX
#  define NOMINMAX
#endif
#include "FL/Fl_Gl_Window.H"
class Controller;
// The GL Drawing window
class GlWindow : public Fl_Gl_Window
{
   public:
      GlWindow(int aX,
               int aY,
               int aW,
               int aH);
      virtual void draw();

      void SetController(Controller* aController) { mController = aController; mIsInitialized=true; }
      virtual int handle(int event);
      virtual void resize(int aX, int aY, int aW, int aH);
   private:

      Controller* mController;
      bool mIsInitialized;
};
#endif
